package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_EQ_SCHEMETAG"
 *     
*/
public class CcpEqSchemetag implements Serializable {

    /** identifier field */
    private String cetGuid;

    /** nullable persistent field */
    private String cetCode;

    /** nullable persistent field */
    private String cetName;

    /** nullable persistent field */
    private String eqsGuid;

    /** nullable persistent field */
    private String schemeGuid;

    /** nullable persistent field */
    private String tagOrder;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpEqSchemetag(String cetGuid, String cetCode, String cetName, String eqsGuid, String schemeGuid, String tagOrder, String reserved1, String reserved2, String reserved3) {
        this.cetGuid = cetGuid;
        this.cetCode = cetCode;
        this.cetName = cetName;
        this.eqsGuid = eqsGuid;
        this.schemeGuid = schemeGuid;
        this.tagOrder = tagOrder;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpEqSchemetag() {
    }

    /** minimal constructor */
    public CcpEqSchemetag(String cetGuid) {
        this.cetGuid = cetGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CET_GUID"
     *         
     */
    public String getCetGuid() {
        return this.cetGuid;
    }

    public void setCetGuid(String cetGuid) {
        this.cetGuid = cetGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CET_CODE"
     *             length="10"
     *         
     */
    public String getCetCode() {
        return this.cetCode;
    }

    public void setCetCode(String cetCode) {
        this.cetCode = cetCode;
    }

    /** 
     *            @hibernate.property
     *             column="CET_NAME"
     *             length="50"
     *         
     */
    public String getCetName() {
        return this.cetName;
    }

    public void setCetName(String cetName) {
        this.cetName = cetName;
    }

    /** 
     *            @hibernate.property
     *             column="EQS_GUID"
     *             length="32"
     *         
     */
    public String getEqsGuid() {
        return this.eqsGuid;
    }

    public void setEqsGuid(String eqsGuid) {
        this.eqsGuid = eqsGuid;
    }

    /** 
     *            @hibernate.property
     *             column="SCHEME_GUID"
     *             length="32"
     *         
     */
    public String getSchemeGuid() {
        return this.schemeGuid;
    }

    public void setSchemeGuid(String schemeGuid) {
        this.schemeGuid = schemeGuid;
    }

    /** 
     *            @hibernate.property
     *             column="TAG_ORDER"
     *             length="10"
     *         
     */
    public String getTagOrder() {
        return this.tagOrder;
    }

    public void setTagOrder(String tagOrder) {
        this.tagOrder = tagOrder;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="300"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="300"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cetGuid", getCetGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpEqSchemetag) ) return false;
        CcpEqSchemetag castOther = (CcpEqSchemetag) other;
        return new EqualsBuilder()
            .append(this.getCetGuid(), castOther.getCetGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCetGuid())
            .toHashCode();
    }

}
